
public class Map {
	private Node head;
	private Node tail;
	private Node[] table;
	
	public Map()
	{
		head = new Node(0);
		tail = new Node(26);
		table = new Node[25];
		for(int i=0;i<25;i++)
			table[i] = new Node(i+1);
		
		head.setLink(table[0], null);
		for(int i=0; i<16;i++)
			table[i].setLink(table[i+1], null);
		for(int i=16; i<21;i++)
			table[i].setLink(table[i+1], null);
		table[21].setLink(table[22], null);
		table[22].setLink(table[18], null);
		table[19].setShortcut(table[23]);
		table[23].setLink(table[24], null);
		table[24].setLink(table[15], null);
		table[3].setShortcut(table[16]);
		table[7].setShortcut(table[21]);
		table[15].setLink(tail, null);
	}
}
